package cn.com.cetccst.datacenter.collection.dao;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Query;

import java.util.List;

import cn.com.cetccst.datacenter.collection.entity.TestEntity;

//测试用
@Dao
public interface TestDao extends BaseDao<TestEntity> {

    @Query("select * from " + TestEntity.TABLE_NAME + " where name = :name")
    List<TestEntity> queryByName(String name);

    @Query("select * from " + TestEntity.TABLE_NAME + " where tag = :tag")
    LiveData<List<TestEntity>> queryById(String tag);
}
